function getProductId(el)
{
    var id = el.id;
    var id_num =  id.substring(31,32);
    return document.getElementById('venta_linea_venta_' + id_num + '_producto_id').value;
}

function getProductRow(el)
{
    var id = el.id;
    var id_num =  id.substring(31,32);
    return id_num;
}

function updateRemovedProducts(val)
{
    var hid = $('removed_products');
    
    if (hid.value == '')
         hid.value = val;
     else
         hid.value = hid.value + '-' + val;
}

